
'===============================================================================
'  Generated From - VbNet_SQL_dOOdads_BusinessEntity.vbgen
' 
'  ** IMPORTANT  **
'  How to Generate your stored procedures:
' 
'  SQL        = SQL_StoredProcs.vbgen
'  ACCESS     = Access_StoredProcs.vbgen
'  ORACLE     = Oracle_StoredProcs.vbgen
'  FIREBIRD   = FirebirdStoredProcs.vbgen
'  POSTGRESQL = PostgreSQL_StoredProcs.vbgen
'
'  The supporting base class SqlClientEntity is in the Architecture directory in "dOOdads".
'  
'  This object is 'MustInherit' which means you need to inherit from it to be able
'  to instantiate it.  This is very easilly done. You can Override properties and
'  methods in your derived class, this allows you to regenerate this class at any
'  time and not worry about overwriting custom code. 
'
'  NEVER EDIT THIS FILE.
'
'  Public Class YourObject
'    Inherits _YourObject
'
'  End Class
'
'===============================================================================

' Generated by MyGeneration Version # (1.3.0.3)

Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Collections
Imports System.Collections.Specialized

Imports MyGeneration.dOOdads

NameSpace ClassSigeco

Public MustInherit Class _si_notaCredito_detalle
	Inherits SqlClientEntity

		Public Sub New() 
			Me.QuerySource = "si_notaCredito_detalle"
			Me.MappingName = "si_notaCredito_detalle"
		End Sub

	'=================================================================
	'  Public Overrides Sub AddNew()
	'=================================================================
	'
	'=================================================================
	Public Overrides Sub AddNew()
		MyBase.AddNew()
				
	End Sub
	
	Public Overrides Sub FlushData()
		Me._whereClause = nothing
		Me._aggregateClause = nothing		
		MyBase.FlushData()
	End Sub
	
		
	'=================================================================
	'  	Public Function LoadAll() As Boolean
	'=================================================================
	'  Loads all of the records in the database, and sets the currentRow to the first row
	'=================================================================
	Public Function LoadAll() As Boolean
	
		Dim parameters As ListDictionary = Nothing
		
		
    	Return MyBase.LoadFromSql("[" + Me.SchemaStoredProcedure + "proc_si_notaCredito_detalleLoadAll]", parameters)
		
	End Function

	'=================================================================
	' Public Overridable Function LoadByPrimaryKey()  As Boolean
	'=================================================================
	'  Loads a single row of via the primary key
	'=================================================================
        Public Overridable Function LoadByPrimaryKey(ByVal IdNotaCreditoDetalle As Integer) As Boolean

            Dim parameters As ListDictionary = New ListDictionary()
            parameters.Add(_si_notaCredito_detalle.Parameters.IdNotaCreditoDetalle, IdNotaCreditoDetalle)


            Return MyBase.LoadFromSql("[" + Me.SchemaStoredProcedure + "proc_si_notaCredito_detalleLoadByPrimaryKey]", parameters)

        End Function

#Region "Parameters"
        Protected Class Parameters

            Public Shared ReadOnly Property IdNotaCreditoDetalle() As SqlParameter
                Get
                    Return New SqlParameter("@IdNotaCreditoDetalle", SqlDbType.Int, 0)
                End Get
            End Property

            Public Shared ReadOnly Property IdNotaCredito() As SqlParameter
                Get
                    Return New SqlParameter("@IdNotaCredito", SqlDbType.Int, 0)
                End Get
            End Property

            Public Shared ReadOnly Property Cantidad() As SqlParameter
                Get
                    Return New SqlParameter("@Cantidad", SqlDbType.Decimal, 0)
                End Get
            End Property

            Public Shared ReadOnly Property Descripcion() As SqlParameter
                Get
                    Return New SqlParameter("@Descripcion", SqlDbType.NVarChar, 200)
                End Get
            End Property

            Public Shared ReadOnly Property Iva() As SqlParameter
                Get
                    Return New SqlParameter("@Iva", SqlDbType.Decimal, 0)
                End Get
            End Property

            Public Shared ReadOnly Property Precio_final() As SqlParameter
                Get
                    Return New SqlParameter("@Precio_final", SqlDbType.Decimal, 0)
                End Get
            End Property

        End Class
#End Region

#Region "ColumnNames"
        Public Class ColumnNames

            Public Const IdNotaCreditoDetalle As String = "idNotaCreditoDetalle"
            Public Const IdNotaCredito As String = "idNotaCredito"
            Public Const Cantidad As String = "cantidad"
            Public Const Descripcion As String = "descripcion"
            Public Const Iva As String = "iva"
            Public Const Precio_final As String = "precio_final"

            Public Shared Function ToPropertyName(ByVal columnName As String) As String

                If ht Is Nothing Then

                    ht = New Hashtable

                    ht(IdNotaCreditoDetalle) = _si_notaCredito_detalle.PropertyNames.IdNotaCreditoDetalle
                    ht(IdNotaCredito) = _si_notaCredito_detalle.PropertyNames.IdNotaCredito
                    ht(Cantidad) = _si_notaCredito_detalle.PropertyNames.Cantidad
                    ht(Descripcion) = _si_notaCredito_detalle.PropertyNames.Descripcion
                    ht(Iva) = _si_notaCredito_detalle.PropertyNames.Iva
                    ht(Precio_final) = _si_notaCredito_detalle.PropertyNames.Precio_final

                End If

                Return CType(ht(columnName), String)

            End Function

            Private Shared ht As Hashtable = Nothing
        End Class
#End Region

#Region "PropertyNames"
        Public Class PropertyNames

            Public Const IdNotaCreditoDetalle As String = "IdNotaCreditoDetalle"
            Public Const IdNotaCredito As String = "IdNotaCredito"
            Public Const Cantidad As String = "Cantidad"
            Public Const Descripcion As String = "Descripcion"
            Public Const Iva As String = "Iva"
            Public Const Precio_final As String = "Precio_final"

            Public Shared Function ToColumnName(ByVal propertyName As String) As String

                If ht Is Nothing Then

                    ht = New Hashtable

                    ht(IdNotaCreditoDetalle) = _si_notaCredito_detalle.ColumnNames.IdNotaCreditoDetalle
                    ht(IdNotaCredito) = _si_notaCredito_detalle.ColumnNames.IdNotaCredito
                    ht(Cantidad) = _si_notaCredito_detalle.ColumnNames.Cantidad
                    ht(Descripcion) = _si_notaCredito_detalle.ColumnNames.Descripcion
                    ht(Iva) = _si_notaCredito_detalle.ColumnNames.Iva
                    ht(Precio_final) = _si_notaCredito_detalle.ColumnNames.Precio_final

                End If

                Return CType(ht(propertyName), String)

            End Function

            Private Shared ht As Hashtable = Nothing

        End Class
#End Region

#Region "StringPropertyNames"
        Public Class StringPropertyNames

            Public Const IdNotaCreditoDetalle As String = "s_IdNotaCreditoDetalle"
            Public Const IdNotaCredito As String = "s_IdNotaCredito"
            Public Const Cantidad As String = "s_Cantidad"
            Public Const Descripcion As String = "s_Descripcion"
            Public Const Iva As String = "s_Iva"
            Public Const Precio_final As String = "s_Precio_final"

        End Class
#End Region

#Region "Properties"
        Public Overridable Property IdNotaCreditoDetalle() As Integer
            Get
                Return MyBase.Getint(ColumnNames.IdNotaCreditoDetalle)
            End Get
            Set(ByVal Value As Integer)
                MyBase.Setint(ColumnNames.IdNotaCreditoDetalle, Value)
            End Set
        End Property

        Public Overridable Property IdNotaCredito() As Integer
            Get
                Return MyBase.Getint(ColumnNames.IdNotaCredito)
            End Get
            Set(ByVal Value As Integer)
                MyBase.Setint(ColumnNames.IdNotaCredito, Value)
            End Set
        End Property

        Public Overridable Property Cantidad() As Decimal
            Get
                Return MyBase.Getdecimal(ColumnNames.Cantidad)
            End Get
            Set(ByVal Value As Decimal)
                MyBase.Setdecimal(ColumnNames.Cantidad, Value)
            End Set
        End Property

        Public Overridable Property Descripcion() As String
            Get
                Return MyBase.Getstring(ColumnNames.Descripcion)
            End Get
            Set(ByVal Value As String)
                MyBase.Setstring(ColumnNames.Descripcion, Value)
            End Set
        End Property

        Public Overridable Property Iva() As Decimal
            Get
                Return MyBase.Getdecimal(ColumnNames.Iva)
            End Get
            Set(ByVal Value As Decimal)
                MyBase.Setdecimal(ColumnNames.Iva, Value)
            End Set
        End Property

        Public Overridable Property Precio_final() As Decimal
            Get
                Return MyBase.Getdecimal(ColumnNames.Precio_final)
            End Get
            Set(ByVal Value As Decimal)
                MyBase.Setdecimal(ColumnNames.Precio_final, Value)
            End Set
        End Property


#End Region
	
	#Region "String Properties" 

		Public Overridable Property s_IdNotaCreditoDetalle As String
			Get
				If Me.IsColumnNull(ColumnNames.IdNotaCreditoDetalle) Then
					Return String.Empty
				Else
					Return MyBase.GetintAsString(ColumnNames.IdNotaCreditoDetalle)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.IdNotaCreditoDetalle)
				Else
					Me.IdNotaCreditoDetalle = MyBase.SetintAsString(ColumnNames.IdNotaCreditoDetalle, Value)
				End If
			End Set
		End Property

		Public Overridable Property s_IdNotaCredito As String
			Get
				If Me.IsColumnNull(ColumnNames.IdNotaCredito) Then
					Return String.Empty
				Else
					Return MyBase.GetintAsString(ColumnNames.IdNotaCredito)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.IdNotaCredito)
				Else
					Me.IdNotaCredito = MyBase.SetintAsString(ColumnNames.IdNotaCredito, Value)
				End If
			End Set
		End Property

		Public Overridable Property s_Cantidad As String
			Get
				If Me.IsColumnNull(ColumnNames.Cantidad) Then
					Return String.Empty
				Else
					Return MyBase.GetdecimalAsString(ColumnNames.Cantidad)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.Cantidad)
				Else
					Me.Cantidad = MyBase.SetdecimalAsString(ColumnNames.Cantidad, Value)
				End If
			End Set
		End Property

		Public Overridable Property s_Descripcion As String
			Get
				If Me.IsColumnNull(ColumnNames.Descripcion) Then
					Return String.Empty
				Else
					Return MyBase.GetstringAsString(ColumnNames.Descripcion)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.Descripcion)
				Else
					Me.Descripcion = MyBase.SetstringAsString(ColumnNames.Descripcion, Value)
				End If
			End Set
		End Property

		Public Overridable Property s_Iva As String
			Get
				If Me.IsColumnNull(ColumnNames.Iva) Then
					Return String.Empty
				Else
					Return MyBase.GetdecimalAsString(ColumnNames.Iva)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.Iva)
				Else
					Me.Iva = MyBase.SetdecimalAsString(ColumnNames.Iva, Value)
				End If
			End Set
		End Property

		Public Overridable Property s_Precio_final As String
			Get
				If Me.IsColumnNull(ColumnNames.Precio_final) Then
					Return String.Empty
				Else
					Return MyBase.GetdecimalAsString(ColumnNames.Precio_final)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.Precio_final)
				Else
					Me.Precio_final = MyBase.SetdecimalAsString(ColumnNames.Precio_final, Value)
				End If
			End Set
		End Property


	#End Region  	

	#Region "Where Clause"
    Public Class WhereClause

        Public Sub New(ByVal entity As BusinessEntity)
            Me._entity = entity
        End Sub
		
		Public ReadOnly Property TearOff As TearOffWhereParameter
			Get
				If _tearOff Is Nothing Then
					_tearOff = new TearOffWhereParameter(Me)
				End If

				Return _tearOff
			End Get
		End Property

		#Region "TearOff's"
		Public class TearOffWhereParameter

			Public Sub New(ByVal clause As WhereClause)
				Me._clause = clause
			End Sub
		
	
			Public ReadOnly Property IdNotaCreditoDetalle() As WhereParameter
				Get
					Dim where As WhereParameter = New WhereParameter(ColumnNames.IdNotaCreditoDetalle, Parameters.IdNotaCreditoDetalle)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property

                Public ReadOnly Property IdNotaCredito() As WhereParameter
                    Get
                        Dim where As WhereParameter = New WhereParameter(ColumnNames.IdNotaCredito, Parameters.IdNotaCredito)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property

                Public ReadOnly Property Cantidad() As WhereParameter
                    Get
                        Dim where As WhereParameter = New WhereParameter(ColumnNames.Cantidad, Parameters.Cantidad)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property

                Public ReadOnly Property Descripcion() As WhereParameter
                    Get
                        Dim where As WhereParameter = New WhereParameter(ColumnNames.Descripcion, Parameters.Descripcion)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property

                Public ReadOnly Property Iva() As WhereParameter
                    Get
                        Dim where As WhereParameter = New WhereParameter(ColumnNames.Iva, Parameters.Iva)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property

                Public ReadOnly Property Precio_final() As WhereParameter
                    Get
                        Dim where As WhereParameter = New WhereParameter(ColumnNames.Precio_final, Parameters.Precio_final)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property


			Private _clause as WhereClause
		End Class
		#End Region	

		Public ReadOnly Property IdNotaCreditoDetalle() As WhereParameter 
			Get
				If _IdNotaCreditoDetalle_W Is Nothing Then
					_IdNotaCreditoDetalle_W = TearOff.IdNotaCreditoDetalle
				End If
				Return _IdNotaCreditoDetalle_W
			End Get
		End Property

		Public ReadOnly Property IdNotaCredito() As WhereParameter 
			Get
				If _IdNotaCredito_W Is Nothing Then
					_IdNotaCredito_W = TearOff.IdNotaCredito
				End If
				Return _IdNotaCredito_W
			End Get
		End Property

		Public ReadOnly Property Cantidad() As WhereParameter 
			Get
				If _Cantidad_W Is Nothing Then
					_Cantidad_W = TearOff.Cantidad
				End If
				Return _Cantidad_W
			End Get
		End Property

		Public ReadOnly Property Descripcion() As WhereParameter 
			Get
				If _Descripcion_W Is Nothing Then
					_Descripcion_W = TearOff.Descripcion
				End If
				Return _Descripcion_W
			End Get
		End Property

		Public ReadOnly Property Iva() As WhereParameter 
			Get
				If _Iva_W Is Nothing Then
					_Iva_W = TearOff.Iva
				End If
				Return _Iva_W
			End Get
		End Property

		Public ReadOnly Property Precio_final() As WhereParameter 
			Get
				If _Precio_final_W Is Nothing Then
					_Precio_final_W = TearOff.Precio_final
				End If
				Return _Precio_final_W
			End Get
		End Property

		Private _IdNotaCreditoDetalle_W As WhereParameter = Nothing
		Private _IdNotaCredito_W As WhereParameter = Nothing
		Private _Cantidad_W As WhereParameter = Nothing
		Private _Descripcion_W As WhereParameter = Nothing
		Private _Iva_W As WhereParameter = Nothing
		Private _Precio_final_W As WhereParameter = Nothing

			Public Sub WhereClauseReset()

			_IdNotaCreditoDetalle_W = Nothing
			_IdNotaCredito_W = Nothing
			_Cantidad_W = Nothing
			_Descripcion_W = Nothing
			_Iva_W = Nothing
			_Precio_final_W = Nothing
				Me._entity.Query.FlushWhereParameters()

			End Sub
	
		Private _entity As BusinessEntity
		Private _tearOff As TearOffWhereParameter
    End Class	

	Public ReadOnly Property Where() As WhereClause
		Get
			If _whereClause Is Nothing Then
				_whereClause = New WhereClause(Me)
			End If
	
			Return _whereClause
		End Get
	End Property
	
	Private _whereClause As WhereClause = Nothing	
#End Region	

#Region "Aggregate Clause"
    Public Class AggregateClause

        Public Sub New(ByVal entity As BusinessEntity)
            Me._entity = entity
        End Sub
		
		Public ReadOnly Property TearOff As TearOffAggregateParameter
			Get
				If _tearOff Is Nothing Then
					_tearOff = new TearOffAggregateParameter(Me)
				End If

				Return _tearOff
			End Get
		End Property

		#Region "AggregateParameter TearOff's"
		Public class TearOffAggregateParameter

			Public Sub New(ByVal clause As AggregateClause)
				Me._clause = clause
			End Sub
		
	
		Public ReadOnly Property IdNotaCreditoDetalle() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.IdNotaCreditoDetalle, Parameters.IdNotaCreditoDetalle)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property

		Public ReadOnly Property IdNotaCredito() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.IdNotaCredito, Parameters.IdNotaCredito)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property

		Public ReadOnly Property Cantidad() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.Cantidad, Parameters.Cantidad)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property

		Public ReadOnly Property Descripcion() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.Descripcion, Parameters.Descripcion)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property

		Public ReadOnly Property Iva() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.Iva, Parameters.Iva)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property

		Public ReadOnly Property Precio_final() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.Precio_final, Parameters.Precio_final)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property


			Private _clause as AggregateClause
		End Class
		#End Region	

		Public ReadOnly Property IdNotaCreditoDetalle() As AggregateParameter 
			Get
				If _IdNotaCreditoDetalle_W Is Nothing Then
					_IdNotaCreditoDetalle_W = TearOff.IdNotaCreditoDetalle
				End If
				Return _IdNotaCreditoDetalle_W
			End Get
		End Property

		Public ReadOnly Property IdNotaCredito() As AggregateParameter 
			Get
				If _IdNotaCredito_W Is Nothing Then
					_IdNotaCredito_W = TearOff.IdNotaCredito
				End If
				Return _IdNotaCredito_W
			End Get
		End Property

		Public ReadOnly Property Cantidad() As AggregateParameter 
			Get
				If _Cantidad_W Is Nothing Then
					_Cantidad_W = TearOff.Cantidad
				End If
				Return _Cantidad_W
			End Get
		End Property

		Public ReadOnly Property Descripcion() As AggregateParameter 
			Get
				If _Descripcion_W Is Nothing Then
					_Descripcion_W = TearOff.Descripcion
				End If
				Return _Descripcion_W
			End Get
		End Property

		Public ReadOnly Property Iva() As AggregateParameter 
			Get
				If _Iva_W Is Nothing Then
					_Iva_W = TearOff.Iva
				End If
				Return _Iva_W
			End Get
		End Property

		Public ReadOnly Property Precio_final() As AggregateParameter 
			Get
				If _Precio_final_W Is Nothing Then
					_Precio_final_W = TearOff.Precio_final
				End If
				Return _Precio_final_W
			End Get
		End Property

		Private _IdNotaCreditoDetalle_W As AggregateParameter = Nothing
		Private _IdNotaCredito_W As AggregateParameter = Nothing
		Private _Cantidad_W As AggregateParameter = Nothing
		Private _Descripcion_W As AggregateParameter = Nothing
		Private _Iva_W As AggregateParameter = Nothing
		Private _Precio_final_W As AggregateParameter = Nothing

		Public Sub AggregateClauseReset()

		_IdNotaCreditoDetalle_W = Nothing
		_IdNotaCredito_W = Nothing
		_Cantidad_W = Nothing
		_Descripcion_W = Nothing
		_Iva_W = Nothing
		_Precio_final_W = Nothing
			Me._entity.Query.FlushAggregateParameters()

		End Sub
	
		Private _entity As BusinessEntity
		Private _tearOff As TearOffAggregateParameter
    End Class	

	Public ReadOnly Property Aggregate() As AggregateClause
		Get
			If _aggregateClause Is Nothing Then
				_aggregateClause = New AggregateClause(Me)
			End If
	
			Return _aggregateClause
		End Get
	End Property
	
	Private _aggregateClause As AggregateClause = Nothing	
#End Region	

	Protected Overrides Function GetInsertCommand() As IDbCommand
	
		Dim cmd As SqlCommand = New SqlCommand
		cmd.CommandType = CommandType.StoredProcedure
		cmd.CommandText = "[" + Me.SchemaStoredProcedure + "proc_si_notaCredito_detalleInsert]" 
	    
		CreateParameters(cmd)
		
		Dim p As SqlParameter
		p = cmd.Parameters(Parameters.IdNotaCreditoDetalle.ParameterName)
		p.Direction = ParameterDirection.Output
    
		Return cmd 

  	End Function
	
	Protected Overrides Function GetUpdateCommand() As IDbCommand
	
		Dim cmd As SqlCommand = New SqlCommand
		cmd.CommandType = CommandType.StoredProcedure    
		cmd.CommandText = "[" + Me.SchemaStoredProcedure + "proc_si_notaCredito_detalleUpdate]" 
		
		CreateParameters(cmd) 
		    
		Return cmd
	
	End Function	
	
	Protected Overrides Function GetDeleteCommand() As IDbCommand
	
		Dim cmd As SqlCommand = New SqlCommand
		cmd.CommandType = CommandType.StoredProcedure    
		cmd.CommandText = "[" + Me.SchemaStoredProcedure + "proc_si_notaCredito_detalleDelete]" 
		
		Dim p As SqlParameter
		p = cmd.Parameters.Add(Parameters.IdNotaCreditoDetalle)
		p.SourceColumn = ColumnNames.IdNotaCreditoDetalle
		p.SourceVersion = DataRowVersion.Current

  
		Return cmd
	
	End Function	
	
	Private Sub CreateParameters(ByVal cmd As SqlCommand)
	
		Dim p As SqlParameter
		p = cmd.Parameters.Add(Parameters.IdNotaCreditoDetalle)
		p.SourceColumn = ColumnNames.IdNotaCreditoDetalle
		p.SourceVersion = DataRowVersion.Current

		p = cmd.Parameters.Add(Parameters.IdNotaCredito)
		p.SourceColumn = ColumnNames.IdNotaCredito
		p.SourceVersion = DataRowVersion.Current

		p = cmd.Parameters.Add(Parameters.Cantidad)
		p.SourceColumn = ColumnNames.Cantidad
		p.SourceVersion = DataRowVersion.Current

		p = cmd.Parameters.Add(Parameters.Descripcion)
		p.SourceColumn = ColumnNames.Descripcion
		p.SourceVersion = DataRowVersion.Current

		p = cmd.Parameters.Add(Parameters.Iva)
		p.SourceColumn = ColumnNames.Iva
		p.SourceVersion = DataRowVersion.Current

		p = cmd.Parameters.Add(Parameters.Precio_final)
		p.SourceColumn = ColumnNames.Precio_final
		p.SourceVersion = DataRowVersion.Current


	End Sub	

End Class

End NameSpace

